Testing

Explain the Architecture of Selenium WebDriver | Software Testing Tool

Explain the Architecture of Selenium WebDriver | Software Testing Tool

Explain the Architecture of Selenium WebDriver | Software Testing Tool

In this article, you will learn about the architecture of the Selenium WebDriver.

Selenium WebDriver is not a standalone testing tool. It requires so many components and tools to run the test cases. 

The components of the selenium WebDriver are:

  • Selenium WebDriver Client Libraries / Languages Bindings: Software testers always want to write the test scripts in the programming languages in which they are comfortable. The WebDriver Architecture supports different languages, so there are bindings available for all languages such as Java, C#, Python, PHP, and more. The person who has a knowledge of any particular programming language can get the binding of the language and start working. Through this, the Selenium WebDriver architecture provides flexibility to the tester to do automation testing from their comfort zone. 
  • JSON Wire Protocol: The JSON Wire Protocol is responsible for all the communication between the browser and the code. It is known as the heart of selenium. It provides the medium for the data transfer using the RESTful(Representation State Transfer) API which is giving the mechanism of transportation and defines the RESTful web service by using JSON over the HTTP protocol.
  • Browser Drivers: There are so many browsers available that support selenium. Every browser has its own implementation of the W3C standard that is provided by the selenium WebDriver. The browser-specific binaries are also available that are particular to the browser and hide the implementation logic from the end-user. JSONWire protocol establishes a connection between the libraries of the browser and the libraries of the client. 
  • Browsers: The installation of the browser is mandatory to run the test cases or test scripts. It needs to be locally installed, either on the local machine or the server machine. 

Working of Selenium WebDriver:

When the user writes a code in selenium web driver and executes it, the following actions happen:

  • An HTTP generates the request, and its traverse to the respective browser driver ( FireFore, Chrome, Internet Explorer). It generates an individual request for each selenium command. 
  • The driver of the browser receives the request from the HTTP server.
  • All the actions and interactions that happen on the browser are decided by the HTTP server.
  • The browser only takes the instructions and executes them as decided and described in the above browser.
  • The HTTP servers receive the status of the execution and then revert the status to an automation script, which will show the exact results whether it is an exception or error or passed.
Yamini  Sharma

I am working as a professional engineer in "HIghRadius Technologies Pvt. Ltd." Passionate about learning and exploring new technologies. Enthusiast in writing and sharing what I have in my knowledge bucket.